package nl.sodeso.cubicex.command.action;

import java.util.Map;

import nl.sodeso.cubicex.CubicExBaseTestCase;

import org.cubictest.selenium.custom.IElementContext;

import com.thoughtworks.selenium.Selenium;

/**
 * Replaces the <code>click</code> command of SeleniumIDE
 * 
 * @author c.beaujoin
 * @since 0.0.4
 */

public class FireClick extends CubicExBaseTestCase {

	/**
	 * {@inheritDoc}
	 */
	public void executeTest(final Map<String, String> arguments,
			final IElementContext context, final Selenium selenium)
			throws Exception {
		// Retrieve the parameters.
		final String _locator = getArgTarget();

		selenium.click(_locator);
	}

}